* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 设置渐变背景色 */
    background: linear-gradient(200deg, #37e2b2, #2fa080);
}

/* 开始画熊猫 */
.panda {
    /* 相对定位 */
    position: relative;
    width: 200px;
}

/* 脸 */
.face {
    width: 200px;
    height: 200px;
    background-color: #fff;
    border-radius: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* 耳朵 */
.ear {
    width: 70px;
    height: 70px;
    background-color: #000;
    border-radius: 100%;
    position: absolute;
    top: -10px;
}

/* 右耳朵 */
.ear.right {
    right: 0;
}

/* 眼睛 */
.eye-shadow {
    width: 50px;
    height: 80px;
    background-color: #000;
    border-radius: 50%;
    position: absolute;
    top: 40px;
}

/* 左眼睛 */
.eye-shadow.left {
    transform: rotate(45deg);
    left: 30px;
}

/* 右眼睛 */
.eye-shadow.right {
    transform: rotate(-45deg);
    right: 30px;
}

/* 眼框 */
.eye-white {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 100%;
    position: absolute;
    top: 68px;
}

/* 左眼瞳 */
.eye-white.left {
    left: 38px;
}

/* 右眼瞳 */
.eye-white.right {
    right: 38px;
}

/* 眼珠 */
.eye-ball {
    width: 20px;
    height: 20px;
    background-color: #000;
    border-radius: 100%;
    position: absolute;
    left: 5px;
    top: 5px;
}

/* 鼻子 */
.nose {
    width: 35px;
    height: 20px;
    background-color: #000;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 65px;
    /* border-radius: /的前四个值表示水平方向的半径，/后面的四个值表示垂直方向的半径 */
    border-radius: 42px 42px 60px 60px / 30px 30px 60px 60px;
}

/* 嘴巴 */
.mouth {
    width: 68px;
    height: 25px;
    border-bottom: 7px solid #000;
    border-radius: 50%;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 35px;
}

/* 身体 */
.body {
    width: 250px;
    height: 280px;
    background-color: #fff;
    position: relative;
    left: -25px;
    top: -10px;
    border-radius: 100px 100px 100px 100px / 126px 126px 96px 96px;
    /* 垂直方向盒子阴影 */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* 脚 */
.footer {
    width: 82px;
    height: 120px;
    background-color: #000;
    position: absolute;
    bottom: 8px;
    z-index: 3;
    border-radius: 40px 40px 35px 40px / 26px 26px 63px 63px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

/* 左脚 */
.footer.left {
    left: -80px;
}

/* 右脚 */
.footer.right {
    right: -80px;
    /* 旋转180度与左脚对称 */
    transform: rotateY(180deg);
}

/* 脚掌 */
.footer::after {
    content: "";
    width: 55px;
    height: 65px;
    background-color: #222;
    position: absolute;
    border-radius: 50%;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 10px;
}

/* 脚趾 */
.footer .sole,
.footer .sole::before,
.footer .sole::after {
    width: 20px;
    height: 30px;
    background-color: #222;
    border-radius: 50%;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 8px;
}

/* 左边的脚趾头 */
.footer .sole::before {
    content: "";
    left: -50px;
}

/* 右边的脚趾头 */
.footer .sole::after {
    content: "";
    left: 25px;
}

/* 手 */
.hand,
.hand::before,
.hand::after {
    width: 40px;
    height: 30px;
    background-color: #000;
    border-radius: 50%;
    position: absolute;
    top: 70px;
    left: -20px;
}

.hand::before {
    content: "";
    top: 16px;
    left: 0;
}

.hand::after {
    content: "";
    top: 32px;
    left: 0;
}

/* 右手 */
.hand.right {
    right: -20px;
    left: auto;
}

/* 登录框 */
.login-box {
    width: 400px;
    height: 300px;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -110px);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* 设置过度 */
    transition: 0.3s;
}

/* 标题 */
h1 {
    color: #1dc797;
    font-weight: normal;
    margin-bottom: 5px;
}

.ipt-box {
    width: 80%;
    margin-top: 25px;
    position: relative;
}

.ipt-box input {
    width: 100%;
    height: 35px;
    border: none;
    border-bottom: 1px solid #bbb;
    text-indent: 5px;
    outline: none;
    transition: 0.3s;
}

.ipt-box label {
    position: absolute;
    left: 7px;
    top: 7px;
    font-size: 14px;
    color: #888;
    transition: 0.3s;
    /* 没有点击事件 */
    pointer-events: none;
}

/* 输入框选中或或有值时输入框的样式 */
.ipt-box input:focus,
.ipt-box input:valid {
    border-color: #1dc797;
    box-shadow: 0 1px #1dc797;
}

/* 输入框选中或输入框有值时label的样式 */
.ipt-box input:focus~label,
.ipt-box input:valid~label {
    color: #1dc797;
    font-size: 12px;
    transform: translateY(-15px);
}

/* 登录按钮 */
.loginBtn {
    width: 150px;
    height: 40px;
    background-color: #1dc797;
    border: none;
    border-radius: 3px;
    margin-top: 30px;
    color: #fff;
    letter-spacing: 10px;
    text-indent: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.loginBtn:hover {
    letter-spacing: 25px;
    text-indent: 25px;
    background-color: #2fa080;
}

/* 向上举登录框遮住眼睛 */
.up {
    transform: translate(-50%, -180px);
}